# for the background
import pygame
from mazesettings import vertical_tile_number, tile_size, screen_width

class Sky:
    # the function showing the background image
    def __init__(self, horizon):
        self.middle = pygame.image.load('../graphics/bg/bg.png').convert()
        self.horizon = horizon

        # stretch the background picture
        self.middle = pygame.transform.scale(self.middle, (screen_width, tile_size))

    # draw the background
    def draw(self, surface):
        for row in range(vertical_tile_number):
            y = row * tile_size
            surface.blit(self.middle, (0,y))